package com.face.server.service;

import com.face.server.entity.Student;
import com.face.server.entity.Visitor;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.security.Principal;
import java.util.Date;

/**
 * Created by ryan on 2018/3/17.
 */
public interface AdminStuService {
    Page<Student> listStu(Pageable pageRequest, String key1, String key2);

    Page<Student> listMyStu(Pageable pageable, String key1, String key2, Principal principal);

    Student createStudent(Student student);

    Page<Visitor> listVisitors(String id,Pageable pageable);

    int deleteByEffectDate(Date now);
}
